package com.cicadamob.contact.api.service;

import java.io.Serializable;

public class Org implements Serializable {
	private static final long serialVersionUID = 5694174658568159655L;
	private int id;
	private String name;
	private String number;
	private boolean hasParent;
	private boolean hasChild;
	private int parent;
	private int level;
	private String vid;
	private String gid;
	private String shortPhone;
	private int role;

	// 集团编码
	private String code;
	// 集团地址
	private String address;
	// 企业简介
	private String profiles;
	// 项目信息
	private String projectInfo;
	// 企业坐标
	private String locationXY;
	// 分享标示
	private String shareFlag;
	// 分享者
	private String sharePhone;
	// 分享时间
	private String shareTime;

	public int getRole() {
		return role;
	}

	public void setRole(int role) {
		this.role = role;
	}

	public String getVid() {
		return vid;
	}

	public void setVid(String vid) {
		this.vid = vid;
	}

	public String getGid() {
		return gid;
	}

	public void setGid(String gid) {
		this.gid = gid;
	}

	public String getShortPhone() {
		return shortPhone;
	}

	public void setShortPhone(String shortPhone) {
		this.shortPhone = shortPhone;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getNumber() {
		return number;
	}

	public void setNumber(String number) {
		this.number = number;
	}

	public int getParent() {
		return parent;
	}

	public void setParent(int parent) {
		this.parent = parent;
	}

	public int getLevel() {
		return level;
	}

	public void setLevel(int level) {
		this.level = level;
	}

	public boolean isExpanded() {
		return expanded;
	}

	public void setExpanded(boolean expanded) {
		this.expanded = expanded;
	}

	// private OutlineElement outlineElement;
	private boolean expanded;

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public boolean isHasParent() {
		return hasParent;
	}

	public void setHasParent(boolean hasParent) {
		this.hasParent = hasParent;
	}

	public boolean isHasChild() {
		return hasChild;
	}

	public void setHasChild(boolean hasChild) {
		this.hasChild = hasChild;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public String getProfiles() {
		return profiles;
	}

	public void setProfiles(String profiles) {
		this.profiles = profiles;
	}

	public String getProjectInfo() {
		return projectInfo;
	}

	public void setProjectInfo(String projectInfo) {
		this.projectInfo = projectInfo;
	}

	public String getShareFlag() {
		return shareFlag;
	}

	public void setShareFlag(String shareFlag) {
		this.shareFlag = shareFlag;
	}

	public String getSharePhone() {
		return sharePhone;
	}

	public void setSharePhone(String sharePhone) {
		this.sharePhone = sharePhone;
	}

	public String getShareTime() {
		return shareTime;
	}

	public void setShareTime(String shareTime) {
		this.shareTime = shareTime;
	}

	public String getLocationXY() {
		return locationXY;
	}

	public void setLocationXY(String locationXY) {
		this.locationXY = locationXY;
	}

	public Org(int id, String name, String number, boolean hasParent,
			boolean hasChild, int parent, int level, boolean expanded) {
		super();
		this.id = id;
		this.name = name;
		this.number = number;
		this.hasParent = hasParent;
		this.hasChild = hasChild;
		this.parent = parent;
		this.level = level;
		this.expanded = expanded;
	}

	public Org(int id, String name, String number, boolean hasParent,
			boolean hasChild, int parent, int level, boolean expanded,
			String shareflg) {
		super();
		this.id = id;
		this.name = name;
		this.number = number;
		this.hasParent = hasParent;
		this.hasChild = hasChild;
		this.parent = parent;
		this.level = level;
		this.expanded = expanded;
		this.shareFlag = shareflg;
	}

	public Org(int id, String name, String number, boolean hasParent,
			boolean hasChild, int parent, int level, boolean expanded, int role) {
		super();
		this.id = id;
		this.name = name;
		this.number = number;
		this.hasParent = hasParent;
		this.hasChild = hasChild;
		this.parent = parent;
		this.level = level;
		this.expanded = expanded;
		this.role = role;
	}

	public Org(int id, String name, int parent, int level,
			boolean hasParent, boolean hasChild) {
		super();
		this.id = id;
		this.name = name;
		this.hasParent = hasParent;
		this.hasChild = hasChild;
		this.parent = parent;
		this.level = level;

	}

	public Org() {

	}

	@Override
	public String toString() {
		StringBuffer sb = new StringBuffer();
		sb.append("==");
		sb.append("id:").append(id).append(",");
		sb.append("hasParent:").append(hasParent).append(",");
		sb.append("hasChild:").append(hasChild).append(",");
		sb.append("parent:").append(parent).append(",");
		sb.append("level:").append(level).append(",");
		sb.append("expanded:").append(expanded);
		return sb.toString();
	}
}
